package com.lihua.newideas.service;

import com.lihua.newideas.pojo.Comment;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/*
* 文章评论
* */
public interface CommentService {

    //添加文章评论
    String insertComment(Comment comment);

    //根据文章id查询文章评论
    List<Comment> queryCommentByArticleId(long articleId);

    //根据id删除文章评论
    String deleteCommentById(long id);

    //根据文章和用户名判断是否评论过
    Comment queryCommentByArticleIdAndUserName(long articleId , String userName);

}
